dat error checking
refactored cgroup param parsing to util func