add main,library & bunus checks.