made special code easyer to add (even works for external programs)