Fix deploy and config, add additional header fields