stat counter added, alignment fixes