added new method to retrieve layerhandle; added preparation options to parameters of the prepare