extract entry command, extract extern command, duplicate string in utils.c