add support of specification file name.
change syntax of if statement.