used by larval framework