some bugs fixed

added "new" flag