user access library; tweaks for CLI environment