ignore and bypass redirects, add prints for debugging
rewrite to use classes for better code readability