fixing handlers that return strings