minor fixes needed for deployed version to work