fixing linking issues in deployment