several bug fixes for mount operation