initial rough implementation of pockets