started converting util to coffescript