see thread on batch compiler