added functions to pantry_api