move to new signature of maincheck($get, $post, $cookie)