add two more helper functions to set memory and swap limit easily