sketched api, added request middleware