setup method headers and doc strings