working reg and auth