changed to relative pathname instead of absolute pathname