add xml version to request
fix typo
fix advance job
improve queries on advance next_request
reset jobs on starting session