added decrypt support