add functionality for fetch