use cwd to resolve the real path, fix the way to count lines in csv file and processed records to exit the process
fix frib types
revise frib types enum
clean up