compatibility for warn & info function add one more depth