bug fixing: transforming underscore in flags