script ls now works

will clean up code tomorrow