adding pieces to get pinhole running