added time eventloop, changed process.std.pause to exit 0