added compile endpoint