add functionality for capturing stderr to UI errors console
remove prints