doplot is not needed anymore (due to the layers feature)