setup main up to be treated like a regular method