add cpt support, fixes #12