fixed some things in initencode