push/pop for recursive calls + some logs for debug // still not working properly for recursive calls

Signed-off-by: Lysander <lysandergc@gmail.com>