preparing actions on server responses