remove annoying guards
fix indentation
remove login method which was interfering with csv generation