changes to ast compilation