logging
restructure if check in file urls #646