better error logging, tell users when stuff gets defined