write done
wait done
priority donation is fucked. dismantling it until later.
fixed double-free bug, wait and exec now fully working