Real functions (like linux)

(added debug code to injector)