save lines!
better redirect and cookie handling