change inline -> static inline (for clang), reduce debugging code