handlers: use 'filepath' instead of 'path' module