first draft of '-c' support