implemented dll export/impoprt code