made script dir and starting main