think i finally got stuff working