autostart converted to wsio
wsio code cleanup