#1 add support for truncate in command line prog