optimize context wrapping
fix inspects
fix compilation flags for .d file