forgot to call the init function! now it works