Better debug messages in the services code
Fixed plugin compilation after the friend-or-foe work