fix refuel bug, allow for saving ast as extension