added stripped_cmd method
Extracted session class
updated auth method to us session instance