fixed global namespace, fixed bug where error messages were getting overwritten