got things working... but not very well