hooked into warehouse API