fix various errors. actually builds now...