shedding extra remote call, fixing php warning