Writing "amb" app with "perstore" module