make server_mode customizable
minor
really remove path