fix surface convert

add dump_constants
add profiling