fixed most of the compile time issues, some problem with the ir