finally managed to make it work