improvement in observe-plugin

compressed and improved for-loop checking cname and ctopic