added --runlast option