add 'layers' (in buffered mode, which is not working at the moment).