added foreman support