check if module is actually loaded

Should fix #6