fix options and filename option