move enum to pkg