better export method