improve error feedback