adds extra arguments to is_active_trail and active_trail_nodes methods