working protoype with transactions an auth