fixed double loadig of modules and loaded all models in development too.