binary sample ported & some debugger tunings