bump version to 0.3.8.beta
merge from master
minor bugs