some messing to get absolute paths