remove lots of ifs by not just having one all-purpose 'accept' handler
rename var
one var statement