added basic crypto support