changed function name convention
added simple action log mechanism