removed write methods that take a handler