console mode almost working, in denoising is segfault though, figuring it out