get almost everything working