added pain rating survey
server works with client