added mobile support correctly this time (hopefully)