check return code for list package