you might want to check module.length first