added a flag to choose config path