When open a dyn file, importing necessary libraries as well