updated to take content and ask for a directory