added listcheck() utility function in module file--this should be moved to a common utility module at some point