fix port, allow you to specify a base directory