fix crashes, nullpointer exceptions, lower log levels for release.