reading poses from file working