added -k option