added -k flag