use writeError() in hello handler