updated pwt-php structure