preliminary version for auth packages (API will change)