add labels feature to slave nodes
This is a hack really, but I don't want to be forced to use java6