implement STOR
added log output to stdout