add version
start using erb
move etc to lib