supporting reading instance files with multiple instances