adjust export to allow only one layer download at  a time