add error handling for interfaces and rlimits