fixed many compile errors. more to do :(