change test live port
add stderr on production mode