partial, preliminary bugfix for delayed display of error messages (issue #34)
tidying up