fixes for bad paths