changed return values to improve embedding fail into batchjobs