take app path instead of config