working on zframe functionality