add detect to compile