added a bunch of debug statements
initialized the cwd for init proc correctly