make '-f' foreground optional