more fixes on error messaging system