temporary profiling code
error message edits