add writeSlow lib to separated file, add write like bash