change type of secfile