propagating enums to frontend