parse arguments better with optparse
failed ignoring on last try