added actions for handling sub documents