added an option to skip encoder 1