added batch fit script
+ some debug