add debug server and handle prerelease in versioning