add method to get custom params from message
add method to remove invalid capabilites from message handler