HACKY: implement own structures