convert hashes to ruby2.0 format
define actions under the Trema module