move upload script to tasks