added a function for auth, removed unused aliases, reorganized custom