finally got this thing to work