models api updated;
layers api added