added some scaling and smoothing to sort of fix #18, though i'm not sure what caused it