use unicorn
refactor logging to before_action