adapted from byu login
cleaning up history