move static dir to app level
fixed counting error