php is kinda working
more work needed