core for general operations