finally got it working, although there are still some bugs