properly get realname
remove generated_c