bug fixes for path improvements