Fix properties path
WIP: write pid file
merge fix