removed the launch function since that will be a part of a different script
updated error checking for get_osvers