generalized instruction structure and made explicit print_stream_file stream