basic url resolving
async refactoring