in the end, use multisampling instead of trying complex optims for now