remove depricated functions and errors if no AK are present