several bug fixes for mount. Added logging to file for debugging