add loglevel property
separate prototype functions