auto factory v1.2.1

style fix
Merge pull request #28 from trialq/master

auto factory v1.2.1