moves some typedefs to public from protected