added proper success/error handling on windows/qt and compiled to single exe