include required attributes in context