updated for rax api key checking