nearly working on apache