added some debugging and options for reading json project file