encoding fixed. now on to implement a couple more modules.