inital commit
update to working version using primus