fix the way to get cwd
fix the out
Merge branch 'hotfix/0.11'