topic script added, some minor modifications