modified the code to export functionalities directly from appleseed.dll