added some comments
derived file support