removed hardcoded values for port, hostname and base folder