moved attachment to frae
added settings and search
added basic error handling