add ncwms directive into layermanager