ignore .DS_Store
code rewrite; partially working