refactor code to use additional before_filters