start of encoder scripts... getting there