use apr_bucket_immortal_create instead of check_datatype