needs more work, still have some left over blocks after purging