fixes for compile