encoder source structuring
implemented encoder input from system arguments