add syslinux
rework using functions