add shallow instead of on.exit