fixed some bugs with directory parsing
got running better but stack pointer is off