adding fork and scheduler framework