it runs now...but there are a few bugs left