note x default to 0
bug fixes
commit script