fixes for jasmine