allow subdirectory format for path. Still need to find a way to organize this...the title is being asked to handle too many things here.