improve error handling for mounting