added forking option