got the x10 working by separating out the x10 commands in two commands