move common interfaces to common dir