fix dependencies
improve error messages