all compile errors fixed for now