added -f option