added some helper functions for fish