fix bug; create sample module for testing