new method "get_arg" for getting a cpt argument, and update messages array based on if cpt is public