created bat, moved init to main