generalized ip's and codes