move files to avoid the bug of node 0.11.9; fix a potential exception that main uses a variable which is not assigned yet;