move ARG_LEN stuff out to own file