attach keys to request