Removed lastdir
removed more stuff