fixes for compile errors