added basic framework to perform used defined action.

Note: many of functions are not implemented yet or stub.