added basic multi-user functionality