merge with castamir/pdf-response