smarty address and other bugs