change in relations to handle all commands

also an extra method in goal