couple of bugfixes, updated release build to work properly