minor refactor to eliminate conditional on request method
remove unused import