add port using check and pass token into get_events_list func