for code completion
use fputs for codecompletion
to pass string instead of ostream
use string append
re-add timer