added support for managed files