problems with commands being concatenated