small fixes now it compiles