added header method and getMethods