read file; command line; struct embedding