common things extracted to common.el