create object stub as readonly