main function now has project location parameter