update init logic (process argv, tmpdir -> deamon than)