added methods for verifying module type