solved part of compilation problems