fix lots of build errors. Now only need inputs