starting a rewritte of php module