fixed planes bug and reworked directory