added flags stubs and liketext processing