updated for pagoda v2
updated example for Pagoda Box v2