static compilation closer to working