working on dispatch endpoints