added action handling and foundations for other ctcp handling