Moving kupeg dependency inline and porting over frontend