finally got things working