phase 1 of dist trans to js