replace literal classname with cls for extension