updated request classes to set key based on configuration rather than forcing the user to set it