writes requests