wip to make authobj a single func