set abspath to prevent bugs