finally got the module working