fixed auth and scheduling so that it will use key field if supplied