really disgusting code, but the drag and launch functionality is working