got rid of some deprecated codes, initial codes for debug helper