implemented fix for benhoskings/babushka#18 - i believe