block resources before request, fixes #51