added basic encryption