added some macro for the backend