support for encapsulation at the beginning