abstracted the parsing for primitive workloads