add host configuration
pdf service refactor