abstracted stuff to different places... added php file...