small updates to astro related functions