directory upload
fix tests