add debugging and multiple names option. @knownasilya request