added check if it needed at build time