normalize path and various changes