added support for private bash file, and other changes