fixed issues with pre-build event