refactoring of netctlprofile