added front end realizability checking and api