restructure bin file so the pipe flow is more readable
0.3.1