twist code to run specific instances