sync base_controller with sinatra-mvc