remove every method except those absolutely needed for function and debugging