tweaked mikiplayerauto function, improve error checking