stripped functionality for debug