added port check for fpm