adds batch constructor and get form function