fix loadpath
fix error messages