move trace functions to its own namespace
add fn for create const for method params
new trace namespace