rewrite in classic style
bug fixed
delete moose dependencies