added localz support