remove callback code in layerstore