construct_ESP working