fixes for sramp issues 263, 256
Merge pull request #383 from EricWittmann/263-256

fixes for sramp issues 263, 256