clean log function moved scratchpad and test to make them hiden