app is slow, atempts at optimization