some basic path handeling