mostly naming callbacks on server; some client state stuff (unfinished)