add env as libreary and register with all env