tested haar, looks like it works, though the scaling might be off