added head option for fetch