debug/param passing not fully understood