added module enabled function