added automatic redirect on login, added methods for individual commands