handle multpiple precmds