moved some attributes as before_filter