adding some code for running slate commands