simplified code for actions and netty handlers