make fromPortScan able to provide options