slight variant of sane_scull with better performance.