adding user_agent as parameter to the data.read method