set porno via arguments + write to log + memory leak fix