mod building configuration and install method in env