fixed bug not recognizing -f option