add associate key to machine and fix routes