rename conf to priv as for erlang structure standard, add debug