reorganized mobile code and added server call
actually poll when asked to