server running and registering functions properly