moved common.h outside