move endpoint action into bp_include