adding Chrysalis ports code and errors