cleaning stack trace of framework function calls