now with useable functions, and no fucking silly system calls :ant: