added export functions and automator workflow