added functions in base model
autoload models and controllers file