merged common actions code