runs a single program in a somewhat okay way