rm read_write_lock, endpoint, interrupt & some no used functions