use absolute path for reading index and constantize port
fix header typo