static compiler almost working