Changed connect time out to 500 sec for api2
Moved main scritps to bin