finish implementing scans buffer, moved all constants to seperate class