basic fork handler