finally got the damn thing working