enable passing of Before and After parameters to the get_activities method