now saves output in current directory