moses decoder with personal modifications