rebuild source and api