reorganize some code, add an extra command for adding unnamed sections