adds strnstr and send response also for write queries