add draft of single text write functionality