fixed realtive url problems, fixed php strict problems