sorted out url handling, static file loading.