add custom methods for models and controllers