rewrite showcourse script for test