fix syntax error and hostname