add PreRequest action for all requests