ignoring max folder
Using promisses for async communication